<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { useRouter } from 'vue-router'
const countdown = ref(3)
const router = useRouter()
onMounted(() => {
  const intervalId = setInterval(() => {
    countdown.value--
    if (countdown.value == 0) {
      router.push('/home')
      clearInterval(intervalId)
    }
  }, 1000)
})
</script>

<template>
  <div class="NotFind-page">
    <h2>NotFind</h2>
    <h2>{{ countdown }}秒钟后跳转首页</h2>
  </div>
</template>

<style></style>
